//
//  User.swift
//  VO_Yuejie
//
//  Created by laichunhui on 15/11/17.
//  Copyright © 2015年 lch. All rights reserved.
// 作者

import UIKit

class User: NSObject {
    /// ID
    var id: Int = 0
    /// 用户昵称
    var nick: String?
    /// 用户性别
    var gender: Int = 0
    /// 头像地址
    var icon_url: String?

    /// 介绍
    var intro: String?
    
    
    init(dict: [String: AnyObject]) {
        super.init()
        
        setValuesForKeysWithDictionary(dict)
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {}
    
    override var description: String {
        let keys = ["id", "nick", "gender", "icon_url", "intro"]

        return dictionaryWithValuesForKeys(keys).description
    }
}
